package org.yu.team2023.flashdays.data;

import net.minecraftforge.data.event.GatherDataEvent;
import net.minecraftforge.eventbus.api.EventPriority;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import org.yu.team2023.flashdays.FlashDays;


@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD, modid = FlashDays.MODID)
public class FlashDataHandle {
    @SubscribeEvent(priority = EventPriority.HIGHEST)
    public static void onGatherData(GatherDataEvent event) {
        var generator = event.getGenerator();
        if (event.includeServer()) {
            generator.addProvider(true,new FDRecipeGenerator(generator.getPackOutput()));
        }

    }
}
